﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace AgvSystem.Web.Map_Card_Info
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int Card_Num=(Convert.ToInt32(strid));
					ShowInfo(Card_Num);
				}
			}
		}
		
	private void ShowInfo(int Card_Num)
	{
		AgvSystem.BLL.Map_Card_Info bll=new AgvSystem.BLL.Map_Card_Info();
		AgvSystem.Model.Map_Card_Info model=bll.GetModel(Card_Num);
		this.lblCard_Num.Text=model.Card_Num.ToString();
		this.lblCard_X.Text=model.Card_X.ToString();
		this.lblCard_Y.Text=model.Card_Y.ToString();
		this.lblCard_Direction.Text=model.Card_Direction.ToString();
		this.lblTarget_Station.Text=model.Target_Station.ToString();
		this.lblIs_Single_Road.Text=model.Is_Single_Road?"是":"否";

	}


    }
}
